#ifndef _TYPE_DEFINE_
#define _TYPE_DEFINE_

// Define the common used data type.
#ifdef _linux_
typedef unsigned char * PBYTE;
typedef unsigned char   BYTE;

typedef unsigned short  WORD;
typedef unsigned int    DWORD;

typedef unsigned short  USHORT;
typedef short           SHORT;

typedef unsigned int    UINT;
typedef int             INT;

typedef long long       INT64;
typedef unsigned long long UINT64;
typedef int             SOCKET;

#define lstrcpy         strcpy
#define INFINITE        0xffffffff
#define SOCKET_ERROR    -1
#define INVALID_SOCKET  -1

#ifdef _UNICODE
typedef w_char TCHAR;
#define _T(x)           L ## x
#else
typedef char TCHAR;
#define _T(x)           x
#endif //_UNICODE

#else

#endif //_linux_

#endif
